package com.lhs.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.lhs.DTO.blog.BlogDTO;
import com.lhs.Page.PageParam;
import com.lhs.Page.PageResult;
import com.lhs.Result.Result;
import com.lhs.VO.blog.BlogVO;
import com.lhs.entity.blog.article_search;
import com.lhs.entity.blog.blog_post;

import java.util.List;

/**
* @author 15977
* @description 针对表【blog_post_0(博客文章表（分表）)】的数据库操作Service
* @createDate 2025-09-06 01:49:57
*/
public interface blog_post_0Service extends IService<blog_post> {

    Result<PageResult<BlogVO>> getAllList(PageParam pageParam);

    void initBlogIdPool();

    List<Long> getRandomIds(int limit);

    Result addBlog(BlogDTO blog);

    Result removeById(Long id);

    // 获取文章详情
    Result<BlogVO> getBlogPostById(Long postId);

    List<article_search> getAllListblogs();

//    Result updateById (Long id,BlogDTO blog);
}
